package com.lightjet.macross.base.upms.repository;

import com.lightjet.macross.base.upms.domain.RoleInfo;
import com.lightjet.macross.base.upms.domain.SystemInfo;
import com.lightjet.macross.common.core.BaseRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("roleInfoRepository")
public interface RoleInfoRepository extends BaseRepository<RoleInfo, Integer> {
    RoleInfo findDistinctById(Integer id);

    List<RoleInfo> findAllByParentAndBelongsystem(RoleInfo paren, SystemInfo systemInfo);
}
